home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news3.noc.netcom.net!zdc!zippo!usenet
- From: Jim McFarland <jgm6@orkand.em.cdc.gov>
- Subject: Re: Link Errors
- Content-Type: text/plain; charset=us-ascii
- Sender: usenet@news.zippo.com
- Content-Transfer-Encoding: 7bit
- Nntp-Posting-Host: 158.111.166.77
- Organization: The Orkand Corporation
- Message-ID: <DKMHu9.ALH@news.zippo.com>
- References: <4c515a$5lf@spectator.cris.com>
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
- Mime-Version: 1.0
- Date: Wed, 3 Jan 1996 20:49:21 GMT
-
- mckebp@cris.com (Rasta Mon) wrote:
- >I keep getting errors involving Winmain in programs which don't even
- >involve Wimain. I'm just trying to write a simple little program,
- >and I got this error:
- >Linker Error: Undefined symbol WINMAIN in module c0w.asm
- >It compiled just fine, what's the deal?
- >In case it helps, here's the source code, called Ted.cpp
- >#include <conio.h>
- >
- >int main()
- > {
- > clrscr();
- > getch();
- > return 0;
- > }
- >I am, by the way, using Borland Turbo C++ for Windows.
-
- You can't write simple little programs like this with Turbo C++ for
- Windows. Your code would work in DOS, but not in Windows. All Windows
- programs must have a WinMain() function, unless you are using Borland's
- OWL or another application framework, in which case there is still a
- WinMain() but you don't supply it.
-
- Jim
-
-
-